package cn.gok.servlet;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author: chenfan
 * @Date: 2020/12/6 22:35
 * @Description:
 */
public class ServletContext {

    //当前项目的绝对路径
    private String contextAbsolutePath;

    /**
     * key 为 用户的url
     * value值为HttpServlet ，即某个具体处理该请求的Servlet
     */
    private Map<String, HttpServlet> servletMap = new HashMap<>();


    public Map<String, HttpServlet> getServletMap() {
        return servletMap;
    }

    public void setServletMap(Map<String, HttpServlet> servletMap) {
        this.servletMap = servletMap;
    }

    public String getContextAbsolutePath() {
        return contextAbsolutePath;
    }

    public void setContextAbsolutePath(String contextAbsolutePath) {
        this.contextAbsolutePath = contextAbsolutePath;
    }
}
